import store from "../store/index.js"
export default {
	judgeLogin: function(data=null,urlApi){
		let userInfo = uni.getStorageSync('userInfo')
		if(userInfo){
			return false
		}else {
			if(data) {
				store.commit('LOGIN_FINISH_IS_REQUEST',true)
				store.commit('LOGIN_FINISH_PARAMS',{
					urlApi: urlApi,
					data: data
				})
			}
			store.commit('UPDATE_LOGIN_POPUP',true)
			return true
		}
	}
}